package com.abss.vote.mapper;

import com.abss.vote.model.Administrators;
import com.abss.vote.model.Logo;
import com.abss.vote.model.Probation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface LogoMapper {
    Logo getLogo(@Param("server_id")String server_id);
    Logo getLogos(@Param("account")String account);

    String getAdminFace(@Param("id")Integer id);

    int insertLogo(Logo lo);

    int updateLogoImg(Logo lo);

    int updateFanceImg(Logo lo);

    int updateWx(Logo lo);

    int updateFace(Administrators ad);

    String getAdmin(String server_id);

    void insertProbation(@Param("admin")String admin,@Param("server_id")String server_id);

    List<Probation> getAllProbation();

    int updateProbtation(Probation probation);

    Probation getProbation(Administrators login);

    Probation getProbationByadmin(@Param("server_id")String server_id,@Param("admin") String admin);
}
